package com.tjetc.service;

import com.tjetc.domain.Department;
import com.tjetc.domain.StaffsCount;
import com.tjetc.domain.News;
import com.tjetc.utils.PageInfo;

import java.util.List;

public interface DepartmentService {

    int getCount(String name);

    List<Department> list(String name, PageInfo<Department> pageInfo);

    boolean add(Department department);

    boolean update(Department department);

    boolean del(int id);

    List<Department> queryPidZero();

    List<Department> queryPidNotZero();

    List<Department> queryAll();
    List<Department> queryPidDZero();

    Department getByDid(int id);

    Department getById(int depid);

    List<StaffsCount> getStaffsData();

    List<Department> findByPid(int pid);
}
